IOMMU: Add two generic functions to vendor neutral interface
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 19 Jun 2009 07:41:50 +0000 (08:41 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 19 Jun 2009 07:41:50 +0000 (08:41 +0100)
commit0506bc4d892b7716daa80a24f82f6660252b9f06
treeae74b02557148286adef2dd7d3a5a7bbe7944d65
parente88a10e8c7cbeda42c18859427dae29470174ce1
IOMMU: Add two generic functions to vendor neutral interface

Add 2 generic functions into the vendor neutral iommu interface, The
reason is that from changeset 19732, there is only one global flag
"iommu_enabled" that controls iommu enablement for both vtd and amd
systems, so we need different code paths for vtd and amd iommu systems
if this flag has been turned on. Also, the early checking of
"iommu_enabled" in iommu_setup() is removed to prevent iommu
functionalities from been disabled on amd systems.

Signed-off-by: Wei Wang <wei.wang2@amd.com>
xen/arch/x86/msi.c
xen/drivers/passthrough/amd/iommu_intr.c
xen/drivers/passthrough/amd/pci_amd_iommu.c
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/vtd/iommu.c
xen/include/asm-x86/hvm/svm/amd-iommu-proto.h
xen/include/asm-x86/io_apic.h
xen/include/xen/iommu.h